package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.po.AdminUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.req.user.QueryAdminAccountReq;
import com.letoken.platform.repo.admin.res.user.QueryAdminAccountByIdRes;
import com.letoken.platform.repo.admin.res.user.QueryAdminAccountRes;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-11-23
 */
public interface AdminUserMapper extends BaseMapper<AdminUser> {

    Page<QueryAdminAccountRes> queryAdminAccount(@Param("page") Page<QueryAdminAccountRes> page, @Param("req") QueryAdminAccountReq req);

    QueryAdminAccountByIdRes queryAdminAccountById(@Param("adminUserId") Integer adminUserId);
}
